package com.binance.notification.api.request;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.binance.master.commons.ToString;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel
@Getter
@Setter
public class AddAbnormalConfigRequest extends ToString {

    /**
     * 
     */
    private static final long serialVersionUID = 1038638081681415468L;

    @ApiModelProperty(required = true)
    @NotEmpty
    private String symbol;
    @ApiModelProperty(required = true)
    @NotNull
    private BusinessType businessType;
    @ApiModelProperty(required = true)
    @NotEmpty
    private String businessStr;


    public static enum BusinessType {
        AbnormalPrice("价格异动"),
        PriceBreakthroughs("价格突破");

        private String desc;

        BusinessType(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

}
